import type { Rule } from 'ant-design-vue/lib/form'

export const formRule: Record<string, Rule[]> = {
  jobName: [
    {
      required: true,
      message: '请输入任务名称',
      trigger: 'blur'
    }
  ],
  jobGroup: [
    {
      required: true,
      message: '请选择任务分组',
      trigger: 'blur'
    }
  ],
  invokeTarget: [
    {
      required: true,
      message: '请选择调用目标字符串',
      trigger: 'blur'
    }
  ],
  cronExpression: [
    {
      required: true,
      message: '请选择cron表达式',
      trigger: 'blur'
    }
  ]
}
